package com.sjgs.gis.domain;

import lombok.*;

import java.io.Serializable;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
@EqualsAndHashCode
@Data
public class CheckPointLog implements Serializable {
    private static final long serialVersionUID = 1L;
    Long id = 0L;
    String tag = "default";
    String chkDir = "/data/chk";
    Instant date = Instant.now();
    KeysRange[] KeysRanges = new KeysRange[0];

    public long nextId() {
        return id += 1;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getChkDir() {
        return chkDir;
    }

    public void setChkDir(String chkDir) {
        this.chkDir = chkDir;
    }

    public Instant getDate() {
        return date;
    }

    public void setDate(Instant date) {
        this.date = date;
    }

    public KeysRange[] getKeysRanges() {
        return KeysRanges;
    }

    public void setKeysRanges(KeysRange[] keysRanges) {
        KeysRanges = keysRanges;
    }
}
